<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mytable/jrtable/it_survey.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/jrtable/it_survey.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'it_survey_id',
                footer: "Foots",
                cnName: 'IT调查表',
                name: 'jrtable/it_survey',
                url: "/it_survey/",
                sortName: "CreateDate"
            });
            const editFormFields = ref({"department":"","xname":"","q1":"","a1":"","q2":"","a2":"","q3":"","a3":"","q4":"","a4":"","q5":"","a5":"","q6":"","a6":"","q7":"","a7":"","q8":"","a8":"","q9":"","a9":"","q10":"","a10":"","ipaddress":"","remark":""});
            const editFormOptions = ref([[{"title":"所属部门","field":"department"}],
                              [{"title":"姓名","field":"xname","type":"text"}],
                              [{"title":"您拨打7321报修电话的接听速度如何？（线忙除外）","field":"q1","type":"text"}],
                              [{"title":"1.选偶尔接听或无人接听请说明具体事件","field":"a1","type":"text"}],
                              [{"title":"DMS、MES、SAP、亿格、OA等系统顾问是否在八小时内响应服务","field":"q2","type":"text"}],
                              [{"title":"2.选无响应服务请说明详细事件","field":"a2","type":"text"}],
                              [{"title":"DMS、MES、SAP、亿格、OA等系统问题，信息部顾问是否能有效解决或给出可执行解决方案？","field":"q3","type":"text"}],
                              [{"title":"3.请说明无效的详细事件","field":"a3","type":"text"}],
                              [{"title":"所提系统开发需求是否能在当年度50%满足？","field":"q4","type":"text"}],
                              [{"title":"4.请说明不满足的具体事件","field":"a4","type":"text"}],
                              [{"title":"系统开发进度是否按双方沟通的需求满足？","field":"q5","type":"text"}],
                              [{"title":"5.请说明不满意的具体事件","field":"a5","type":"text"}],
                              [{"title":"您认为IT是否及时满足您的培训需求，培训效果是否满意？","field":"q6","type":"text"}],
                              [{"title":"6.请说明不满意的具体事件","field":"a6","type":"text"}],
                              [{"title":"您对现有IT流程（IT类领用流程、权限申请流程等）是否满意？","field":"q7","type":"text"}],
                              [{"title":"7.请说明不满意的具体事件","field":"a7","type":"text"}],
                              [{"title":"您对邮件系统的使用是否满意？","field":"q8","type":"text"}],
                              [{"title":"8.请说明不满意的具体事件","field":"a8","type":"text"}],
                              [{"title":"您对目前公司网络情况是否满意？","field":"q9","type":"text"}],
                              [{"title":"9.请说明不满意的具体事件","field":"a9","type":"text"}],
                              [{"title":"您对IT服务整体评价如何？","field":"q10","type":"text"}],
                              [{"title":"10.请说明退步的具体原因","field":"a10","type":"text"}],
                              [{"title":"IP地址","field":"ipaddress","type":"text"}],
                              [{"title":"对数字化部提出您的宝贵意见","field":"remark","type":"text"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'it_survey_id',title:'信息部调查表',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'department',title:'所属部门',type:'string',width:100,align:'left',sort:true},
                       {field:'CreateDate',title:'填报时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'xname',title:'姓名',type:'string',width:100,align:'left'},
                       {field:'q1',title:'您拨打7321报修电话的接听速度如何？（线忙除外）',type:'string',width:100,align:'left'},
                       {field:'a1',title:'1.选偶尔接听或无人接听请说明具体事件',type:'string',width:220,align:'left'},
                       {field:'q2',title:'DMS、MES、SAP、亿格、OA等系统顾问是否在八小时内响应服务',type:'string',width:100,align:'left'},
                       {field:'a2',title:'2.选无响应服务请说明详细事件',type:'string',width:220,align:'left'},
                       {field:'q3',title:'DMS、MES、SAP、亿格、OA等系统问题，信息部顾问是否能有效解决或给出可执行解决方案？',type:'string',width:100,align:'left'},
                       {field:'a3',title:'3.请说明无效的详细事件',type:'string',width:220,align:'left'},
                       {field:'q4',title:'所提系统开发需求是否能在当年度50%满足？',type:'string',width:100,align:'left'},
                       {field:'a4',title:'4.请说明不满足的具体事件',type:'string',width:220,align:'left'},
                       {field:'q5',title:'系统开发进度是否按双方沟通的需求满足？',type:'string',width:100,align:'left'},
                       {field:'a5',title:'5.请说明不满意的具体事件',type:'string',width:220,align:'left'},
                       {field:'q6',title:'您认为IT是否及时满足您的培训需求，培训效果是否满意？',type:'string',width:100,align:'left'},
                       {field:'a6',title:'6.请说明不满意的具体事件',type:'string',width:220,align:'left'},
                       {field:'q7',title:'您对现有IT流程（IT类领用流程、权限申请流程等）是否满意？',type:'string',width:100,align:'left'},
                       {field:'a7',title:'7.请说明不满意的具体事件',type:'string',width:220,align:'left'},
                       {field:'q8',title:'您对邮件系统的使用是否满意？',type:'string',width:100,align:'left'},
                       {field:'a8',title:'8.请说明不满意的具体事件',type:'string',width:220,align:'left'},
                       {field:'q9',title:'您对目前公司网络情况是否满意？',type:'string',width:100,align:'left'},
                       {field:'a9',title:'9.请说明不满意的具体事件',type:'string',width:220,align:'left'},
                       {field:'q10',title:'您对IT服务整体评价如何？',type:'string',width:100,align:'left'},
                       {field:'a10',title:'10.请说明退步的具体原因',type:'string',width:220,align:'left'},
                       {field:'ipaddress',title:'IP地址',type:'string',width:220,align:'left'},
                       {field:'remark',title:'对数字化部提出您的宝贵意见',type:'string',width:220,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
